package com.ssm.service;

import com.ssm.pojo.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {
    //   /** 回车
    /**
     * 新增
     * @param book
     * @return
     */
    boolean insert(Book book);

    boolean update(Book book);

    boolean delete(Integer id);

    Book selectBookById(Integer id);

    List<Book> selectAll();
}
